package cn.com.server.dao;

import org.apache.ibatis.annotations.Param;

import com.github.pagehelper.Page;

import cn.com.server.entity.User;
import cn.com.server.extend.view.UserView;
import cn.com.server.extend.model.UserViewModel;

/**
 * <p>
  * 用户表 Mapper 接口
 * </p>
 *
 * @author qing
 * @since 2017-11-20
 */
public interface UserDao{
	
	public User selectByName(@Param("name")String name);
	
	public int insert(User entity);
	
	public Page<UserView> selectUserViewList(UserViewModel userModel);

	public UserView selectById(@Param("id")Long id);

	public int update(User entity);
}